export const memberColumns = Object.freeze([
  { prop: 'id' },
  { prop: 'bookId' },
  { prop: 'id' },
  { prop: 'unid' },
  { prop: 'createTime' },
  { prop: 'createBy' },
  { prop: 'createId' },
  { prop: 'deptId' },
  { prop: 'deptFullName' },
  { prop: 'updateTime' },
  { prop: 'updateId' },
  { prop: 'updateBy' },
  { prop: 'tenantId' },
  { prop: 'delFlag' },
  {
    label: '姓名',
    prop: 'name'
  },
  {
    label: '性别',
    prop: 'gender',
    dicType: 'gender'
  },
  {
    label: '出生日期',
    prop: 'birthday'
  },
  { prop: 'idType' },
  { prop: 'idNo' },
  { prop: 'technicalTitles' },
  { prop: 'duties' },
  { prop: 'education' },
  {
    label: '专业',
    prop: 'speciality'
  },
  { prop: 'workMoth' },
  { prop: 'memberType' },
  { prop: 'hasWageIncome' },
  { prop: 'workUnit' },
  { prop: 'projectId' },
  { prop: 'projectName' },
  { prop: 'topic' },
  { prop: 'status' }
])

export const topicColumns = Object.freeze([
  { prop: 'id' },
  { prop: 'unid' },
  { prop: 'createTime' },
  { prop: 'createBy' },
  { prop: 'createId' },
  { prop: 'deptId' },
  { prop: 'deptFullName' },
  { prop: 'updateTime' },
  { prop: 'updateId' },
  { prop: 'updateBy' },
  { prop: 'tenantId' },
  { prop: 'delFlag' },
  {
    label: '课题名称',
    prop: 'name'
  },
  {
    label: '责任单位',
    prop: 'undertakingUnit'
  },
  { prop: 'masterId' },
  {
    label: '项目负责人',
    prop: 'masterName'
  },
  {
    label: '经费(万元)',
    prop: 'funds'
  },
  { prop: 'remark' },
  { prop: 'projectId' },
  { prop: 'projectName' }
])

export const stageColumns = Object.freeze([
  { prop: 'id' },
  { prop: 'unid' },
  { prop: 'createTime' },
  { prop: 'createBy' },
  { prop: 'createId' },
  { prop: 'deptId' },
  { prop: 'deptFullName' },
  { prop: 'updateTime' },
  { prop: 'updateId' },
  { prop: 'updateBy' },
  { prop: 'tenantId' },
  { prop: 'delFlag' },
  {
    label: '事项',
    prop: 'matter'
  },
  {
    label: '时间',
    prop: 'time'
  },
  { prop: 'remark' },
  { prop: 'projectId' },
  { prop: 'projectName' }
])

export const copyMember = (target, source) => {
  target.name = source.name
  target.gender = source.gender
  target.birthday = source.birthday
  target.idType = source.idType
  target.idNo = source.idNo
  target.technicalTitles = source.technicalTitles
  target.duties = source.duties
  target.education = source.education
  target.speciality = source.speciality
  target.workMoth = source.workMoth
  target.memberType = source.memberType
  target.hasWageIncome = source.hasWageIncome
  target.workUnit = source.workUnit
  target.projectId = source.projectId
  target.projectName = source.projectName
  // target.topic = source.topic
  target.status = source.status
}
